package com.tlgen.spring.config;

import com.tlgen.spring.annotation.Bean;
import com.tlgen.spring.annotation.Value;
import com.tlgen.spring.model.SysUser;
import com.tlgen.spring.annotation.Configuration;

@Configuration
public class MyConfig {

    @Value("${custom.userInfo.username}")
    public String name;

    @Value("${custom.userInfo.mobile}")
    private String mobile;

    @Bean
    SysUser user() {
        return new SysUser("小e", "136");
    }

}
